

/**
 * A privacy list represents a list of contacts that is a read only class used to represent a set of allowed or blocked communications. 
 * Basically it can:<ul>
 *
 *      <li>Handle many {@link org.jivesoftware.smack.packet.PrivacyItem}.</li>
 *      <li>Answer if it is the default list.</li>
 *      <li>Answer if it is the active list.</li>
 * </ul>
 *
 * {@link PrivacyItem Privacy Items} can handle different kind of blocking communications based on JID, group,
 * subscription type or globally.
 * 
 * @author Francisco Vives
 */
class PrivacyList {
public:
	bool isActiveList() {
        return isActiveList;
    }

    bool isDefaultList() {
        return isDefaultList;
    }

	std::vector<PrivacyItem*> getItems() {
        return items;
    }

	std::string toString() {
        return listName;
    }
    
protected:
	PrivacyList(bool isActiveList, bool isDefaultList,
            std::string listName, vector<PrivacyItem*> & privacyItems) {
        this->isActiveList = isActiveList;
        this->isDefaultList = isDefaultList;
        this->listName = listName;
        this->items = privacyItems;
    }

private:
    /** Holds if it is an active list or not **/
    bool isActiveList;
    /** Holds if it is an default list or not **/
    bool isDefaultList;
    /** Holds the list name used to print **/
	std::string listName;
    /** Holds the list of {@see PrivacyItem} **/
	std::vector<PrivacyItem*> items;
};

